package cn.ycc1.boot3thread.controller;

import cn.ycc1.boot3thread.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ycc
 * @date 2024/7/28
 */
@RestController
@RequiredArgsConstructor
public class TestController {
    private final TestService testService;

    /**
     * 测试多线程
     * @return
     */
    @GetMapping("/test")
    public String test() {
        testService.test();
        return "test";
    }
}
